home *** CD-ROM | disk | FTP | other *** search
- scripts.gameOverMusic.stop();
- menuLoopPlaying == false;
- stopAllSounds();
- scroller._y = 700;
- loadScores = null;
- app.submitPath = "/common/score/Scoreboard.jhtml?msg=S&limitEntries=true&game=sb_panic&name=" + app.myscreenName + "&score=" + String(app.gameScore);
- loadScores = new LoadVars();
- loadScores.load(app.basePath + app.submitPath);
- loadScores.onLoad = function()
- {
- trace("load complete");
- if(this.msg == "EE")
- {
- if(this.text == "no scores available for that game (sb_panic)")
- {
- MSGtext = "Sorry, the high-score list is empty!";
- }
- else
- {
- MSGtext = "Oops, the high-score list isnΓÇÖt available right now!";
- }
- gotoAndStop("displayError");
- }
- else
- {
- myScoreFlag = true;
- z = 0;
- while(z < 100)
- {
- nVar = eval("this.pn" + z);
- sVar = eval("this.ps" + z);
- scrollVar = eval("scroller.contentMain.score" + (z + 1));
- scrollVar.gotoAndStop(1);
- if(myScoreFlag)
- {
- if(app.gameScore == sVar && app.myscreenName == nVar)
- {
- trace("found my sub score at:" + z);
- myScoreFlag = false;
- scrollVar.gotoAndStop("hi");
- }
- }
- scrollVar.placeval = z + 1;
- scrollVar.nameval = nVar;
- scrollVar.scoreval = sVar;
- z++;
- }
- gotoAndStop("displayScores");
- play();
- }
- };
- stop();
-